home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / GUSI 1.4.1 / GUSI / GUSI.r < prev    next >
Encoding:
Text File  |  1994-03-16  |  3.5 KB  |  132 lines  |  [TEXT/MPS ]

  1. /*********************************************************************
  2. Project    :    GUSI                -    Grand Unified Socket Interface
  3. File        :    GUSI.r            -    Include this
  4. Author    :    Matthias Neeracher
  5. Language    :    MPW Rez 3.0
  6.  
  7. $Log: GUSI.r,v $
  8. Revision 1.1  1994/02/25  02:12:04  neeri
  9. Initial revision
  10.  
  11. Revision 0.5  1993/05/21  00:00:00  neeri
  12. suffixes
  13.  
  14. Revision 0.4  1993/01/31  00:00:00  neeri
  15. Daemon
  16.  
  17. Revision 0.3  1993/01/03  00:00:00  neeri
  18. autoSpin
  19.  
  20. Revision 0.2  1992/09/24  00:00:00  neeri
  21. Don't include CKID, create GUSIRsrc_P.h
  22.  
  23. Revision 0.1  1992/07/13  00:00:00  neeri
  24. .rsrc
  25.  
  26. *********************************************************************/
  27.  
  28. #include "Types.r"
  29. #include "GUSIRsrc_P.h"
  30.  
  31. include "GUSI.rsrc" not 'ckid';
  32.  
  33. /* Define a resource ('GU∑I', GUSIRsrcID) to override GUSI defaults         
  34.     To avoid having to change the Rez file every time I introduce another
  35.     feature, the preprocessor variable GUSI_PREF_VERSION by default keeps
  36.     everything compatible with version 1.0.2. Just define GUSI_PREF_VERSION
  37.     to be the version you want to use.
  38. */
  39.  
  40. #ifndef GUSI_PREF_VERSION
  41. #define GUSI_PREF_VERSION '0102'
  42. #endif
  43.  
  44. type 'GU∑I' {
  45.     literal longint    text     =    'TEXT';    /* Type for creat'ed files                 */
  46.     literal longint    mpw    =    'MPS ';    /* Creator for creat'ed files              */
  47.     byte         noAutoSpin, autoSpin;        /* Automatically spin cursor ?            */
  48. #if GUSI_PREF_VERSION > '0102'
  49.     boolean     useChdir, dontUseChdir;        /* Use chdir() ?                            */
  50.     boolean    approxStat, accurateStat;    /* statbuf.st_nlink = # of subdirectories ? */
  51.     boolean    noTCPDaemon, isTCPDaemon;    /* Inetd client ?                            */
  52.     boolean    noUDPDaemon, isUDPDaemon;
  53.     fill         bit[4];
  54.     literal longint = GUSI_PREF_VERSION;
  55. #if GUSI_PREF_VERSION >= '0120'
  56.     integer = $$Countof(SuffixArray);
  57.     wide array SuffixArray {
  58.             literal longint;                    /* Suffix of file */
  59.             literal longint;                    /* Type for file */
  60.             literal longint;                    /* Creator for file */
  61.     };
  62. #endif
  63. #endif
  64. };
  65.  
  66. type 'TMPL' {
  67.     wide array {
  68.         pstring;
  69.         literal longint;
  70.     };
  71. };
  72.  
  73. resource 'TMPL' (GUSIRsrcID, "GU∑I") {
  74.     {
  75.         "Type of created files",        'TNAM',
  76.         "Creator of created files",    'TNAM',
  77.         "Automatically spin cursor",     'DBYT',
  78. #if GUSI_PREF_VERSION > '0102'
  79.         "Not using chdir()",                'BBIT',
  80.         "Accurate stat()",                'BBIT',
  81.         "TCP daemon",                        'BBIT',
  82.         "UDP daemon",                        'BBIT',
  83.         "Reserved",                            'BBIT',
  84.         "Reserved",                            'BBIT',
  85.         "Reserved",                            'BBIT',
  86.         "Reserved",                            'BBIT',
  87.         "Version (don't change)",        'TNAM',        
  88. #if GUSI_PREF_VERSION >= '0120'
  89.         "NumSuffices",                        'OCNT',
  90.         "*****",                                'LSTC',
  91.         "Suffix",                            'TNAM',
  92.         "Type for suffix",                'TNAM',
  93.         "Creator for suffix",            'TNAM',
  94.         "*****",                                'LSTE',
  95. #endif
  96. #endif        
  97.     }
  98. };
  99.  
  100. resource 'DLOG' (GUSIRsrcID, "Get Directory") {
  101.     {0, 0, 217, 348}, 
  102.     dBoxProc, 
  103.     invisible, 
  104.     noGoAway, 
  105.     0x0, 
  106.     10240, 
  107.     "",
  108. #if SystemSevenOrLater
  109.     alertPositionMainScreen
  110. #endif
  111. };
  112.  
  113. resource 'DITL' (GUSIRsrcID, "Get Directory") {
  114.     {
  115.         { 142, 256,  160, 336},    Button        {enabled,"Open"},
  116.         {1152,  59, 1232,  77},    Button        {enabled,"Hidden"},
  117.         { 193, 256,  211, 336},    Button        {enabled,"Cancel"},
  118.         {  43, 232,   63, 347},    UserItem        {disabled},
  119.         {  72, 256,   90, 336},    Button        {enabled,"Eject"},
  120.         {  97, 256,  115, 336},    Button        {enabled,"Drive"},
  121.         {  43,  12,  189, 230},    UserItem        {enabled},
  122.         {  43, 229,  189, 246},    UserItem        {enabled},
  123.         { 128, 252,  129, 340},    UserItem        {disabled},
  124.         {1044,  20, 1145, 116},    StaticText    {disabled,""},
  125.         { 167, 256,  185, 336},    Button        {enabled,"Directory"},
  126.         {   0,  30,   18, 215},    Button        {enabled,"Select Current Directory:"},
  127.         { 200,  20, 1145, 136},    StaticText    {disabled,"Select a Folder"}
  128.     }
  129. };
  130.  
  131.  
  132.